package ws2;

public class Test2 {

	public static void main(String[] args) throws Exception{
		WeatherWebServiceStub stub=new WeatherWebServiceStub();
		WeatherWebServiceStub.GetSupportProvince getPros=new WeatherWebServiceStub.GetSupportProvince();
		String[] pros=stub.getSupportProvince(getPros).getGetSupportProvinceResult().getString();
		for(String s:pros){
			System.out.println(s);
		}
		
		WeatherWebServiceStub.GetSupportCity getCities=new WeatherWebServiceStub.GetSupportCity();
		getCities.setByProvinceName("黑龙江");
		String[] cities=stub.getSupportCity(getCities).getGetSupportCityResult().getString();
		for(String s:cities){
			System.out.println(s);
		}
		
		WeatherWebServiceStub.GetWeatherbyCityName getWeather=new WeatherWebServiceStub.GetWeatherbyCityName();
		getWeather.setTheCityName("哈尔滨");
		String[] ww=stub.getWeatherbyCityName(getWeather).getGetWeatherbyCityNameResult().getString();
		System.out.println(ww);
		for(String s:ww){
			System.out.println(s);
		}

	}

}
